package user;

import book.BookList;
import operation.IOperation;

public abstract class User {
    //使用用户 跨包访问 但必须继承User类才可访问 因此 用 protected修饰
    protected String name;

    protected IOperation[] iOperation;

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();

    public void doIopreation(int choice, BookList bookList) {
        this.iOperation[choice].work(bookList);
    }
}
